Ext.define('PackageManager.rules.Rule', {
    componentKeys: [],
    condition: function() {
        return false
    },
    action: function() {
        alert('default')
    },
    constructor: function(passiveComponentKey, condition, action) {
        if (passiveComponentKey != null) {
            this.componentKeys = passiveComponentKey;
            this.condition = condition;
            this.action = action;
            PackageManager.rules.RuleEngine.register(this);
        }
    }
});